package com.houtai.bean.dto.course.comments;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel(value="在线课程评论所需参数", description="在线课程评论所需参数")
public class TdCourseCommentsInsertDto {

    @NotEmpty(message = "评论内容不能为空")
    @Length(max = 100, message = "评论内容最多100个字符")
    @ApiModelProperty(value="评论内容 最多100个字符", name="comments_content")
    private String comments_content;
    @NotNull(message = "评论类型不能为空")
    @Min(value = 1, message = "只能为好评中评差评")
    @Max(value = 3, message = "只能为好评中评差评")
    @ApiModelProperty(value="1好评2中评3差评", name="comments_type")
    private int comments_type;
    @NotNull(message = "课程id不能为空")
    @ApiModelProperty(value="课程id", name="course_id")
    private int course_id;

    public String getComments_content() {
        return comments_content;
    }

    public void setComments_content(String comments_content) {
        this.comments_content = comments_content;
    }

    public int getComments_type() {
        return comments_type;
    }

    public void setComments_type(int comments_type) {
        this.comments_type = comments_type;
    }

    public int getCourse_id() {
        return course_id;
    }

    public void setCourse_id(int course_id) {
        this.course_id = course_id;
    }
}
